<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/jquery-3.5.1.min.js"></script>
</head>
<body>
    <div>div1</div>
    <script >
        $(document).on('click',function(e){
            e.stopPropagation();// 阻止事件冒泡
            e.preventDefault();// 阻止默认行为
            console.log(e.pageX,e.pageY);
        })


        document.body.onclick=function(e){
            console.log(e);
        }
    </script>
</body>
</html>